package net.lab1024.sa.admin.module.business.roland.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * 客户订单表 实体类
 *
 * @Author dragon
 * @Date 2023-12-11 13:27:12
 * @Copyright dragon
 */

@Data
@TableName("t_roland_order")
public class RolandOrderEntity {

    public static final List<Integer> STATUS_LIST = Stream.of(0, 1).collect(Collectors.toList());

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 客户id
     */
    private Integer customerId;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 演出曲目id
     */
    private Integer performanceTypeId;

    /**
     * 订单状态 0:待付款，1:已付款，2已取消
     */
    private Integer orderStatus;

    /**
     * 付款凭证截图
     */
    private String payVoucher;

    /**
     * 电子票据的地址
     */
    private String ticket;

    /**
     * 订单金额
     */
    private BigDecimal amount;

    /**
     * 付款时间
     */
    private LocalDateTime payTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

}